package com.IO流.处理流.Exercise练习;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * 模拟写入配置文件；将dog的信息输入进去；
 */
public class E03 {
    public static void main(String[] args) throws IOException {
        String filePath = "java-code/src/dog.properties";
        Properties properties = new Properties();
        properties.setProperty("name","tom");
        properties.setProperty("age","5");
        properties.setProperty("color","red");

        properties.store(new FileWriter(filePath), null);
    }
}
